#include "kernel/types.h"
#include "kernel/fcntl.h"
#include "user/user.h"
#include "kernel/riscv.h"

#define DATASIZE (8*4096)

char find_data[DATASIZE];

int
main(int argc, char *argv[])
{
    //在该块内存中寻找锚点字符串"This may help"
    for (int i = 0; i < DATASIZE - 14; i++) {
        if (strcmp(find_data + i, "This may help.") == 0) {
          //data+16恰为secret字符串首地址
            printf("%s\n", find_data + i + 16);
        }
    }

    exit(1);
}
